package com.lzc.springcloud.msprovideruser.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.lzc.springcloud.msprovideruser.entity.User;

@RestController
public class UserController {
	
	@GetMapping("/getUser/{id}")
	public User getUser(@PathVariable Integer id) {
		User user = new User();
		
		user.setId(id);
		user.setName("test");
		
		return user;
	}
}
